package org.example.proxy.dynamic;

/**
 * @author wangbin
 * @date 2024/4/18
 * @vesion 1.0
 */
public class Client {

    public static void main(String[] args) {
        TeacherDao target = new TeacherDao();
        ITeacherDao iTeacherDao = (ITeacherDao)new ProxyFactory(target).newProxyInstance();

        iTeacherDao.teach();
        iTeacherDao.sayhello();
    }
}
